<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>创建一个 EPUB</title>
  <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/>
</head>

<body>
  <h2 id="tutorial">为 Sigil 准备你的文件</h2>

  <p>If you already have an EPUB or HTML file, or are writing from scratch in Sigil, you can skip this step.</p>
  <p>如果您已经有 EPUB 或 HTML 文件，或者正在 Sigil 中从头开始编写，则可以跳过此步骤。</p>

  <p>If you are starting with a document created by a word processor, then the first thing you need to do is convert your document to HTML so that you can import it into Sigil. Some programs can generate EPUB files as output. And some programs have add-ons or features to clean up their HTML output. Whether it is best to use the HTML or EPUB (or even plain text) output of these programs depends on the program – you can always test different ways to see what works best.</p>
  <p>如果您从文字处理器创建的文档开始，那么您要做的第一件事就是将文档转换为 HTML，以便可以将其导入到 Sigil 中。 某些程序可以生成 EPUB 文件作为输出。并且某些程序具有附加组件或功能来清理其 HTML 输出。是否最好使用这些程序的 HTML 或 EPUB（甚至纯文本）输出取决于该程序–您始终可以测试不同的方法，以查看最有效的方法。</p>

  <div class="tip">
    <p class="tiptext">The "cleaner" your HTML file is, the easier it will be to turn it into an EPUB and the more likely it will display correctly on multiple devices. This means using styles for formatting and not using too many fancy formats and layouts.</p>
    <p class="tiptext">HTML 文件越“干净”，将其转换成 EPUB 越容易，并且更有可能在多个设备上正确显示。这意味着使用样式进行格式化，而不要使用过多的花式格式和布局。</p>

    <p class="tiptext">Do not expect an EPUB to look like a printed book – EPUB is designed so that the reader can control how the book is displayed.</p>
    <p class="tiptext">不要指望 EPUB 看起来像一本印刷的书——EPUB 的设计使读者可以控制书的显示方式。</p>
  </div>

  <p>Although conversion is not part of Sigil, here are some suggestions for converting files for importing into Sigil.</p>
  <p>尽管转换不是 Sigil 的一部分，但是这里有一些建议，用于转换文件以导入到 Sigil 中。</p>

  <h3 class="sigil_not_in_toc">Word 文档</h3>

  <p>Use the MS Word menu item <span class="menuitem">File→Save As Filtered HTML</span>. Or use the <a href="http://www.mobileread.com/forums/showthread.php?t=142530">MS Word Macro @ MobileRead</a>.</p>
  <p>使用 MS Word 菜单项 <span class="menuitem">文件→另存为过滤的 HTML </span>。或使用 <a href="http://www.mobileread.com/forums/showthread.php?t=142530">MS Word Macro @ MobileRead</a>。</p>

  <p>Both approaches try to reduce the amount of extra code exported by MS Word so that your HTML file is cleaner and simpler to edit in Sigil. You really want to have your code as clean as possible since Word adds lots of extra HTML tags that you will probably want to delete at some point.</p>
  <p>两种方法都试图减少 MS Word 导出的额外代码量，以使您的 HTML 文件更干净，更容易在 Sigil 中进行编辑。您真的想使代码尽可能整洁，因为 Word 添加了许多额外的 HTML 标记，您可能希望在某些时候删除它们。</p>

  <p>When using Word or any word processor, you should always try to use styles to format your code instead of just making some text bold, some larger, etc. Styles are also an important concept when formatting EPUBs.</p>
  <p>使用 Word 或任何文字处理器时，应始终尝试使用样式来格式化代码，而不仅仅是使某些文本变为粗体，更大一些，等等。在格式化 EPUB 时，样式也是重要的概念。</p>

  <h3 class="sigil_not_in_toc">文本文件</h3>

  <p>It is not strictly necessary to convert text files to HTML. Sigil can directly open .txt files.</p>
  <p>并非必须将文本文件转换为 HTML。Sigil 可以直接打开 .txt 文件。</p>

  <div class="tip">
    <p class="tiptext">Text files must have a blank line between paragraphs so that Sigil can split them into separate paragraphs.</p>
    <p class="tiptext">文本文件在段落之间必须有一个空白行，以便 Sigil 可以将它们拆分为单独的段落。</p>
  </div>

  <p>Text files are not an ideal source, but they can still be better than some formats as they will have fewer unnecessary HTML tags. They may be worth using if you have lots of issues with other formats. Sometimes it is faster to add styles to a clean document than to try to clean up a converted file.</p>
  <p>文本文件不是理想的来源，但是它们仍会比某些格式更好，因为它们将具有更少的不必要的 HTML 标签。如果您对其他格式有很多疑问，可能值得使用。有时，将样式添加到干净的文档中比尝试清理转换后的文件要快。</p>

  <h3 class="sigil_not_in_toc">其他格式</h3>

  <p>Many other word processors, such as LibreOffice, also have a save-as or export to HTML or even save-as EPUB function that you can try. You can also convert other formats to HTML or EPUB using other software such as <a href="http://calibre-ebook.com/">Calibre</a>.</p>
  <p>您还可以尝试其他许多文字处理程序，例如 LibreOffice，也可以另存为或导出为 HTML，甚至另存为 EPUB 功能。您还可以使用其他软件（例如 <a href="http://calibre-ebook.com/">Calibre</a>）将其他格式转换为 HTML 或 EPUB。</p>

  <p>Note that any automatic conversion of your files will introduce lots of extra code. If you are just formatting a book for personal use you may not be concerned with this. But if you are formatting books for professional purposes or want as little extra code in your EPUB as possible, then it should be avoided.</p>
  <p>请注意，文件的任何自动转换都会引入很多额外的代码。 如果您只是格式化一本书以供个人使用，则可能无需担心。但是，如果您出于专业目的格式化书籍，或者在 EPUB 中希望尽可能少的额外代码，则应避免这种情况。</p>

  <div class="tip">
    <p class="tiptext">Sigil only supports importing HTML files since converting from other formats is actually quite specialised and best left to other tools.</p>
    <p class="tiptext">Sigil 仅支持导入 HTML 文件，因为从其他格式进行转换实际上是非常专业的，最好留给其他工具使用。</p>
  </div>
</body>
</html>